<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/5 0005
 * Time: 下午 7:25
 */
defined('BASEPATH') OR exit('No direct script access allowed');
class Admin extends MY_Controller
{
    /**
     * 初始化操作
     * */
    public function __construct()
    {
        parent::__construct();
        $this->load->database();
        $this->load->helper('url');
        $this->load->helper('captcha');
    }

    /**
     *后台首页
     * */
    public function index($page='index')
    {
        $data['title']='后台首页';
        $this->load->view('admin/index',$data);
    }

    /**
     * 后台首页头部
     *
     * */
    public function indexTop()
    {
        $this->load->view('admin/head');
    }

    /**
     * 后台首页左部
     *
     * */
    public function indexLeft()
    {
        $this->load->view('admin/left');
    }

    /**
     * 后台默认页面
     * */
    public function indexDefault()
    {
        $this->load->view('admin/main');
    }



}